import requests
import json
url = "https://www.ptpress.com.cn/recommendBook/getRecommendBookListForPortal?bookTagId=2725fe7b-b2c2-4769-8f6f-c95f04c70275"
response = requests.get(url)
d = response.content
print(d)
# 使用json转换
data = json.loads(d)
print(data)
print(data["data"][0]["bookName"])
for i in data["data"]:
    print(i["bookName"])